package com.gao.modules.role.vo;

import com.gao.modules.role.pojo.SysRole;
import lombok.Data;

import java.io.Serializable;

/**
 * @author anshenghui
 * @date 2021/11/15 23:03
 * @desc 登录返回用户详情信息封装vo
 */
@Data
public class SysRoleLoginVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String roleId;

    private String roleName;

    private String roleCode;

    public SysRoleLoginVo() {

    }

    public SysRoleLoginVo(SysRole sysRole) {
        this.roleId = sysRole.getId();
        this.roleName = sysRole.getName();
        this.roleCode = sysRole.getCode();
    }
}
